<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Person */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="person-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'sex')->dropDownList([ '男' => '男', '女' => '女', ], ['prompt' => '请选择']) ?>

    <?= $form->field($model, 'birthday')->textInput() ?>

    <?= $form->field($model, 'nationality')->textInput(['maxlength' => true,'value'=>'中国']) ?>

    <?= $form->field($model, 'id_type')->dropDownList(Yii::$app->params['fieldOptions']['id_type'],['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'id_number')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'ethnicity')->dropDownList(Yii::$app->params['fieldOptions']['ethnicity'],['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'birthplace')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'native_place')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mobile')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'qq')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'weixin')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'marriage')->dropDownList(Yii::$app->params['fieldOptions']['marriage'],['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'qualification')->dropDownList(Yii::$app->params['fieldOptions']['qualification'],['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'school')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'major')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'graduation_date')->textInput() ?>

    <?= $form->field($model, 'degree')->dropDownList(Yii::$app->params['fieldOptions']['degree'],['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'create_time')->textInput() ?>

    <?= $form->field($model, 'update_time')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
